using System;
using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application.Entity.Business;

[SugarTable("ElectricMeterFreeze", "电表冻结")]
[SysTable]
public class ElectricMeterFreeze : EntityBaseData
{
	/// <summary>
	/// 表号/imei/序列号
	/// </summary>
	public string Sn { get; set; }

	/// <summary>
	/// 电表id
	/// </summary>
	public long MeterId { get; set; }

	/// <summary>
	/// 协议类型：0：4G 1采集网关
	/// </summary>
	public int ProtocolType { get; set; }

	/// <summary>
	/// 表地址或站号，（645 高位-&gt;低位，需在保存或编辑时颠倒一次,作为指令下发等使用）
	/// </summary>
	public string Addr { get; set; }

	/// <summary>
	/// 645表地址,低位-&gt;高位，平台显示所用
	/// </summary>
	public string? LowAddr { get; set; }

	/// <summary>
	/// 冻结日期
	/// </summary>
	public DateTime ElectricMeterFreezeTime { get; set; }

	/// <summary>
	/// 组合有功总电能（表显）
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? CombinedActiveTotalElectricEnergy { get; set; }

	/// <summary>
	/// 组合有功尖电能（表显）
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? CombinedActiveSharpElectricEnergy { get; set; }

	/// <summary>
	/// 组合有功峰电能（表显）
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? CombinedActivePeakElectricEnergy { get; set; }

	/// <summary>
	/// 组合有功平电能（表显）
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? CombinedActiveFlatElectricEnergy { get; set; }

	/// <summary>
	/// 组合有功谷电能（表显）
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? CombinedActiveValleyElectricEnergy { get; set; }

	/// <summary>
	/// 组合有功深谷电能（表显）
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal? CombinedActiveDeepValleyElectricEnergy { get; set; }
}
